<template>
  <header>
    <section>
      <!-- 阻止表单的默认提交事件 -->
      <label for="title">ToDoList</label>
      <input type="text" placeholder="添加ToDo" v-model="iptVal" />
    </section>
  </header>
</template>

<script>
import { ref, watch } from "vue";

export default {
  setup() {
    let iptVal = ref("");
    watch(()=>)
    return {
      iptVal,
    };
  },
};
</script>

<style></style>
